package com.showgood.vo {
import flash.utils.ByteArray;
public class ArmySetupVO extends BaseVO {
public var type: int;
public var army: Vector.<int>;
public var lineup: int;
public var start: int;
public var dest: int;
public var amount: int;
override public function get vid():int { return 12; }
override public function pack(b:ByteArray):void {
super.pack(b);
b.writeInt(this.type);
b.writeShort(army.length);
for(var _iarmy:int = 0; _iarmy < army.length; _iarmy++) {
b.writeInt(this.army[_iarmy]);
}
b.writeInt(this.lineup);
b.writeInt(this.start);
b.writeInt(this.dest);
b.writeInt(this.amount);
}
override public function unpack(b:ByteArray):void {
super.unpack(b);
this.type = b.readInt();
this.army = new Vector.<int>();
var narmy:int = b.readShort();
for(var _iarmy:int=0;_iarmy<narmy;_iarmy++) {
this.army.push(b.readInt());
}
this.lineup = b.readInt();
this.start = b.readInt();
this.dest = b.readInt();
this.amount = b.readInt();
}
}
}
